const mutations = {
	SET_SINGER(state, singer) {//歌手数据
    state.singer = singer
  },
	SET_PLAYING_STATE(state, flag) {//播放状态
		state.playing=flag
  },
  SET_FULL_SCREEN(state, flag) {//播放器张开还是收起
		state.fullScreen=flag
  },
  SET_PLAYLIST(state, list) {//播发列表
		state.playlist=list
  },
	SET_SEQUENCE_LIST(state, list) {//顺序列表
		state.sequenceList=list
  },
	SET_PLAY_MODE(state, mode) { //播放模式
    state.mode = mode
  },
	SET_CURRENT_INDEX(state, index) {//当前播放的索引
    state.currentIndex = index
  },
	SET_SEQUENCE_CLEAR(state, list) {//顺序列表 清空数据
		state.sequenceList=list
	},
	CURRENTSONG(state, list){//当前播放歌曲
		state.currentSong=list
		// console.log(state.currentSong)
	},
	CURRENTSONGFALSE(state, list){//当前播放歌曲 FALSE
		state.currentSong=[]
		state.currentSong=list
	},
	SET_DISC(state, disc) {//歌单界面
    state.disc = disc
  },
  SET_TOP_LIST(state, topList) {//排行榜数据
    state.topList = topList
  },
	SET_SEARCH_HISTORY(state, history) {//搜索历史
    state.searchHistory = history
  },
	SET_PLAY_HISTORY(state, history) { //add-song播放历史
    state.playHistory = history
  },
	SET_FAVORITE_LIST(state, list) {//用户喜欢的数据
    state.favoriteList = list
  },
	pcoc(state, data) { //模拟点击页面
	state.dianji = data++
 }
}


export default mutations